package study;

public class TestExchange {
    String str = "1";
    char[] arr = { 'a', 'b', 'c' };

    public static void main(String[] args) {
        TestExchange te = new TestExchange();
        te.exchange(te.str, te.arr);
        System.out.print(te.str + " ");
        System.out.print(te.arr);
    }

    public void exchange(String str, char arr[]) {
        str = "2";
        arr[0] = 'd';
    }
}
